package com.zelix;

import java.io.*;

public abstract class at extends is
    implements pm
{

    int i;
    int j;
    private static String z[];

    at(int k, jb jb, jm jm1)
        throws IOException
    {
        super(k, jm1);
        i = jb.readUnsignedShort();
        j = jb.readUnsignedShort();
    }

    abstract rs a(at at1, ks ks1, ws ws1);

    public is a(qy qy1, qy qy2, PrintWriter printwriter)
    {
        try
        {
            is is1 = super.f.a(i);
            if(!(is1 instanceof ks))
            {
                printwriter.println(super.f.b() + z[1] + z[0]);
                return new ps(this, l(), z[0]);
            }
            is is2 = super.f.a(j);
            if(!(is2 instanceof ws))
            {
                printwriter.println(super.f.b() + z[1] + z[2]);
                return new ps(this, l(), z[2]);
            } else
            {
                rs rs = a(this, (ks)is1, (ws)is2);
                qy2.b(is2, rs);
                return rs;
            }
        }
        catch(ArrayIndexOutOfBoundsException _ex)
        {
            printwriter.println(super.f.b() + z[1] + z[3]);
        }
        return new ps(this, l(), z[3]);
    }

    protected void a(DataOutputStream dataoutputstream)
        throws IOException
    {
        dataoutputstream.writeByte(l());
        dataoutputstream.writeShort(i);
        dataoutputstream.writeShort(j);
    }

    private static String z(char[] chs) {
        for (int i = 0; i < chs.length; i++) {
            byte key = 0;
            switch (i % 5) {
                case 0: // '\0'
            key = 0x69;
            break;

        case 1: // '\001'
            key = 54;
            break;

        case 2: // '\002'
            key = 63;
            break;

        case 3: // '\003'
            key = 13;
            break;

        default:
            key = 106;
            break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }

    static
    {
        String as[];
        as = new String[4];
        as[0] = z(" XIl\006\000R\037N\005\007EKl\004\035\026ob\005\005\026\\a\013\032E\037d\004\rSG".toCharArray());
        as[1] = z("I\f\037".toCharArray());
        as[2] = z(" XIl\006\000R\037N\005\007EKl\004\035\026ob\005\005\026Ql\007\f\026^c\016IBF}\017I_Qi\017\021".toCharArray());
        as[3] = z("*YQ~\036\bXK-:\006YS-\003\007RZuJ\006CK-\005\017\026Ml\004\016S".toCharArray());
        z = as;
    }
}